<?php
apf_require_class("Bll_BLL");
class Bll_Attendance_ApplyType extends BLL {

    public static function get_delay_type($item = 0) {
        $types = array(
                1 => '迟到',
                2 => '早退',
                3 => '缺勤',
                4 => '迟到,早退'
        );
        return $item ? $types[$item] : $types;
    }
    public static function get_delay_type_2($item = 0){
        $types = array(
                5 => '上午缺勤',
                6 => '下午缺勤',
                7 => '全天缺勤',
        );
        return $item ? $types[$item] : $types;
    }
    public static function get_leave_type($item = 0) {
        $types = array(
                1 => '事假',
                2 => '病假',
                3 => '年假',
                4 => '丧假',
                5 => '婚假',
                6 => '产检',
                7 => '产前假',
                8 => '产假',
                9 => '陪产假',
        );
        return $item ? $types[$item] : $types;
    }

    /**
     * 获取所有外出类型 
     * 
     * @static
     * @access public
     * @return array()
     */
    public static function get_all_leave_type() {
        $ask_leave = self::get_leave_type();
        $other = array(
            '10' => '公出',
            '11' => '迟到',
            '12' => '出差');
        return array_merge($ask_leave,$other);
    }
}
?>
